﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Collections.Generic;

namespace et_test
{
    public class question
    {
        int id;

        public int Id
        {
            get { return id; }
            set { id = value; }
        }

        string title = "";

        public string Title
        {
            get { return title; }
            set { title = value; }
        }

        int typeID;

        public int TypeID
        {
            get { return typeID; }
            set { typeID = value; }
        }

        string type;

        public string Type
        {
            get { return type; }
            set { type = value; }
        }

        string courseName = "";

        public string CourseName
        {
            get { return courseName; }
            set { courseName = value; }
        }

        int score;

        public int Score
        {
            get { return score; }
            set { score = value; }
        }

        string description = "";

        public string Description
        {
            get { return description; }
            set { description = value; }
        }

        string knowledgePoint = "";

        public string KnowledgePoint
        {
            get { return knowledgePoint; }
            set { knowledgePoint = value; }
        }

        string imgUrl = "";

        public string ImgUrl
        {
            get { return imgUrl; }
            set { imgUrl = value; }
        }

        string soundUrl = "";

        public string SoundUrl
        {
            get { return soundUrl; }
            set { soundUrl = value; }
        }

        List<option> options = new List<option>();

        public List<option> Options
        {
            get { return options; }
            set { options = value; }
        }

        string answer = "";

        public string Answer
        {
            get { return answer; }
            set { answer = value; }
        }

        int finalscore;

        public int Finalscore
        {
            get { return finalscore; }
            set { finalscore = value; }
        }

    }


    public class option
    {
        public int ID { get; set; }
        public int SerialNumber { get; set; }
        public string Title { get; set; }
        public bool IsCorrect { get; set; }
        public option()
        {
            ID = -1;
            SerialNumber = -1;
            Title = "";
            IsCorrect = false;
        }
    }
}
